package com.ky.gp.app.controller;

import com.ky.common.param.TopicsAdd;
import com.ky.common.vo.R;
import com.ky.gp.app.service.TopicHomeFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Author 小胤
 * @Date 2024/6/18 15:03
 * @注释
 */
@RestController
@RequestMapping("/api/home/topics")
public class TopicHomeController {
    @Autowired
    private TopicHomeFeign topicHomeFeign;
    @RequestMapping("/clickIn")
    public R clickIn(@RequestBody TopicsAdd topicsAdd) {
    return topicHomeFeign.clickIn(topicsAdd);
    }
    @RequestMapping("/getTopics")
    public R getTopics(){
        return topicHomeFeign.getTopics();
    }

}
